package com.homeinns.lyx.server.exception;

import com.homeinns.lyx.server.enums.ResultEnum;

public class OrderParamException extends RuntimeException {

    private int code;

    public OrderParamException(int code,String message){
        super(message);
        this.code=code;
    }

    public OrderParamException(ResultEnum resultEnum){
        super(resultEnum.getDesc());
        this.code = resultEnum.getCode();

    }
}
